﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yugi.Client
{
    public partial class SupervisorModel
    {
        private void ProcessFromServer_MF1_BLOCK(object[] data)
        {
            Block.Block.Allow_NormalSummon = (byte)data[0] == 1;
            Block.Block.Allow_SpecialSummon = (byte)data[1] == 1;
            Block.Block.Allow_SetSpell = (byte)data[2] == 1;
            Block.Block.Allow_SetTrap = (byte)data[3] == 1;
            Block.Block.Allow_ActiveSpell = (byte)data[4] == 1;
            Block.Block.Allow_ChangePosition.Clear();
            int count = (byte)data[5];
            for (int i = 0; i < count; i++)
            {
                Block.Block.Allow_ChangePosition.Add((byte)data[6 + i]);
            }
        }
        private void ProcessFromServer_MF2_BLOCK(object[] data)
        {
            Block.Block.Allow_NormalSummon = (byte)data[0] == 1;
            Block.Block.Allow_SpecialSummon = (byte)data[1] == 1;
            Block.Block.Allow_SetSpell = (byte)data[2] == 1;
            Block.Block.Allow_SetTrap = (byte)data[3] == 1;
            Block.Block.Allow_ActiveSpell = (byte)data[4] == 1;
            Block.Block.Allow_ChangePosition.Clear();
            int count = (byte)data[5];
            for (int i = 0; i < count; i++)
            {
                Block.Block.Allow_ChangePosition.Add((byte)data[6 + i]);
            }
        }
        private void ProcessFromServer_BF_BLOCK(object[] data)
        {

        }
    }
}
